﻿<%@ Page Language="vb" Culture="en-US" AutoEventWireup="false" MasterPageFile="~/Master_Page/Master_IPORT.Master" CodeBehind="frm_ShipSchedule.aspx.vb" Inherits="I_PORT.frm_ShipSchedule" 
    title="IRPC INTELLIGENT PORT SERVICE" %>
    
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <script type="text/javascript" language="javascript" >
  	    function showtooltip(id,sCustomer,sAgent,sName,sLOA,sDWT,sDraft,sGRT,sDate,sProduct,sAmount,sLaytime) {
            document.getElementById(id).style.visibility = "visible";
            x = event.clientX + document.body.scrollLeft;
            y = event.clientY + document.body.scrollTop + 10;
            document.getElementById(id).style.display = "block";
            document.getElementById(id).style.left = x;
            document.getElementById(id).style.top = y;
            document.getElementById("TD_Customer").innerText = sCustomer;
            document.getElementById("TD_Agent").innerText = sAgent;
            document.getElementById("TD_NAME").innerText = sName;
            document.getElementById("TD_LOA").innerText = sLOA + '\xa0FT';
            document.getElementById("TD_DWT").innerText = sDWT + '\xa0MT';
            document.getElementById("TD_Draft").innerText = sDraft + '\xa0FT';
            document.getElementById("TD_GRT").innerText = sGRT + '\xa0MT';
            document.getElementById("TD_Date").innerText = sDate;
            document.getElementById("TD_Product").innerText = sProduct;
            document.getElementById("TD_Amount").innerText = sAmount;
            document.getElementById("TD_Laytime").innerText = sLaytime;
        }
        function hidetooltip(id) {
            document.getElementById(id).style.visibility = "hidden";
        }
        function fncdbl(booking) 
{
    window.location = '../Form/frm_ManageBookingSchedule.aspx?P1=N&P2=N&P3=N&P4=B&booking=' + booking;
} 
        function fncdbl2(booking) 
{
    window.location = '../Form/Maintenance_Wharf.aspx?P1=N&P2=N&P3=N&P4=O&booking=' + booking;
} 
  </script>
      <style type="text/css">
        .LockedColumnForTable
        {
            left: expression(document.getElementById("dataList").scrollLeft);
            position: relative;
            z-index: 101;
        }
        .LockedColumnForTable2
        {
            top: expression(document.getElementById("dataList").scrollTop);
            position: relative;
            z-index: 101;
        }
    </style>
	<asp:UpdatePanel ID="UpdatePanel1" runat="server">
	<ContentTemplate>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
	     <tr>
	        <td colspan="2" style="text-align:left"><asp:Label ID="lbDate" runat="server" SkinID="lbtxt" Text="DAY : " ></asp:Label><asp:TextBox ID="txtDate" runat="server" Width="80px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgDate" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:Label ID="Label3" runat="server" SkinID="lbtxt" Text="TO"></asp:Label>&nbsp;<asp:TextBox ID="txtDateTo" runat="server" Width="80px"  onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgDateTo" runat="server"  ImageUrl="~/Image/calendar.png" />
                 <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtDate" Format="dd MMM yyyy" PopupButtonID="ImgDate">
                 </asp:CalendarExtender>
                 <asp:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtDateTo" Format="dd MMM yyyy" PopupButtonID="ImgDateTo" >
                 </asp:CalendarExtender>
                 <asp:Label ID="Label1" runat="server" SkinID="lbtxt" Text="PORT : " ></asp:Label>
        <asp:DropDownList ID="ddlWharf" runat="server" SkinID="ddl" >
           <asp:ListItem Value="L">LIQUID</asp:ListItem>
           <asp:ListItem Value="B">BULK</asp:ListItem>
        </asp:DropDownList>
                 <asp:Button ID="btnSearch" runat="server" CssClass="ButtonStyle" Text="SEARCH" />
	        </td>
	     </tr>
	     <tr>
             <td style="height:5px;"><img src="../Image/space.gif" /></td>
         </tr>
	     <tr>
	         <td colspan="2">
	           <table width="100%" border="0" cellpadding="0" cellspacing="0" >
                        <tr>
                          <td>&nbsp</td>
                          <td style="background-color:#A0CFEC;width:24px;">&nbsp;</td>
                          <td style="width:140px;" align="left">&nbsp<asp:Label ID="lb" runat="server" SkinID="lbtxt" Text="LOAD TO DOMESTIC"></asp:Label></td>
                          <td style="background-color:#6698FF;width:24px;">&nbsp;</td>
                          <td style="width:140px;" align="left">&nbsp<asp:Label ID="Label30" runat="server" SkinID="lbtxt" Text="LOAD TO FOREIGN"></asp:Label></td>
                          <td style="background-color:#52D017;width:24px;">&nbsp;</td>
                          <td style="width:140px;" align="left">&nbsp<asp:Label ID="Label31" runat="server" SkinID="lbtxt" Text="DISCH FROM DOMESTIC"></asp:Label></td>
                          <td style="background-color:#347C17;width:24px;">&nbsp;</td>
                          <td style="width:140px;" align="left">&nbsp<asp:Label ID="Label32" runat="server" SkinID="lbtxt" Text="DISCH FROM FOREIGN"></asp:Label></td>
                        </tr>
                    </table>
	         </td>
	     </tr>
	     <tr>
             <td style="height:5px;"><img src="../Image/space.gif" /></td>
         </tr>
         <tr>
             <td colspan="2" align="left">
             <asp:UpdatePanel ID="UDPanelWharf" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
             <table width="119" border="0"cellpadding="0" cellspacing="0">
                  <tr>
                     <td>
                       <div  id='dataList' style="width:945px; min-height:280px; overflow:scroll; position:relative;">
                        <asp:Literal ID="LiWharf" runat="server"></asp:Literal></div>
                </td>
                  </tr>
                   <tr>
                    <td style="height:5px;"><img src="../Image/space.gif" /></td>
                 </tr>
                  <tr>
                     <td align="left">
                        &nbsp;&nbsp;&nbsp;<asp:Button ID="btnPrint" runat="server" Width="140px" Text="Export To Excel" CssClass="ButtonStyle"  /><asp:Label ID="lbError" runat="server" Text="" ForeColor="White" ></asp:Label>
                     </td>
                  </tr>
                </table>   
                <asp:Timer ID="Timer1" runat="server" Interval="1000" >
                 </asp:Timer>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
                </Triggers>
             </asp:UpdatePanel>
                 
             </td>
         </tr>
         <tr>
             <td style="height:5px;"><img src="../Image/space.gif" /></td>
         </tr>
        </table>
        <div id="tooltip1" style="visibility: hidden; position: absolute">
        <table border="0" cellspacing="1" cellpadding="0" bgcolor="#663366">
            <tr>
                <td height="24" style="background-image: url('../images/HeaderBG.gif');" align="left">
                    &nbsp;
                    <asp:Label ID="Label10" runat="server" Font-Bold="True" CssClass="Head-tooltip" Text="Vessel Detail"></asp:Label>
                </td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF">
                    <table border="0" cellpadding="3" cellspacing="0" id="tblTooltip">
                        <tr>
                            <td>
                                <asp:Label ID="Label2" runat="server" Text="Booking no." CssClass="White-Style"></asp:Label>
                            </td>
                            <td id="TD_Customer" class="White-Style">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label4" runat="server" Text="Main Agent(Sold To)." CssClass="White-Style"></asp:Label>
                            </td>
                            <td id="TD_Agent" class="White-Style">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label13" runat="server" Text="Vessel." CssClass="White-Style"></asp:Label>
                            </td>
                            <td id="TD_NAME" class="White-Style">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label5" runat="server" Text="LOA." CssClass="White-Style"></asp:Label>
                            </td>
                            <td id="TD_LOA" class="White-Style">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label6" runat="server" Text="DWT." CssClass="White-Style"></asp:Label>
                            </td>
                            <td id="TD_DWT" class="White-Style">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label7" runat="server" Text="Draft." CssClass="White-Style"></asp:Label>
                            </td>
                            <td id="TD_Draft" class="White-Style">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label8" runat="server" Text="GRT." CssClass="White-Style"></asp:Label>
                            </td>
                            <td id="TD_GRT" class="White-Style">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label14" runat="server" Text="LAYTIME." CssClass="White-Style"></asp:Label>
                            </td>
                            <td id="TD_Laytime" class="White-Style">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label9" runat="server" Text="วันที่." CssClass="White-Style"></asp:Label>
                            </td>
                            <td id="TD_Date" class="White-Style">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label12" runat="server" Text="COMMODITY." CssClass="White-Style"></asp:Label>
                            </td>
                            <td id="TD_Product" class="White-Style">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="Label11" runat="server" Text="QUANTITY." CssClass="White-Style"></asp:Label>
                            </td>
                            <td id="TD_Amount" class="White-Style">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
     </ContentTemplate>
   </asp:UpdatePanel>
<%--   <script type="text/javascript"> 
//SYNTAX: tabdropdown.init("menu_id", [integer OR "auto"])
tabdropdown.init("colortab", 1)
</script>--%>
</asp:Content>
